import requests
import time
proxies = {
    "http": "113.120.62.23:9999",
    # "https": "163.204.244.166:9999"
}

# url='http://api.tianapi.com/txapi/ipquery/'
# url = 'https://www.imxingzhe.com/xzb/97790'
url =
params={
    "key": "d81f29ec2d9bbde72fabcb9fedbe8613",
    "ip": "121.232.148.180"
}
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML like Gecko) Chrome/44.0.2403.155 Safari/537.36"}

count = 1;
while count < 200:

    r = requests.get(url=url,
                     # proxies=proxies,
                     timeout=30,
                     headers=headers
                     # params=params
                     )
    if r.status_code == 200:
        time.sleep(1)
        count = count + 1
        print("请求" + count)

# r.raise_for_status()

# print(r.status_code)
# print(r.text)